package org.lq.shopping.dao;

import java.sql.Date;
import java.util.List;

import org.lq.shopping.base.BaseDao;
import org.lq.shopping.entity.ShopInvoice;
/**
 * 
 * @author 闵江沛
 * @date 2018年9月26日
 */
public interface InvoiceDao extends BaseDao<ShopInvoice>{
	/**
	 * 根据发票类型查询
	 * @param invoicetype 发票类型
	 * @return
	 */
	List<ShopInvoice> findByInvoiceType(String invoicetype);
	/**
	 * 个人发票查询
	 * @param uid
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	List<ShopInvoice> findPageById(int uid,int pageIndex, int pageSize);
	/**
	 * 用户名发票模糊查询
	 * @param uname
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	List<ShopInvoice> findPageLikeName(String uname,int pageIndex, int pageSize);
	
	List<ShopInvoice> findPageByTime(Date startTime,Date endTime,int pageIndex, int pageSize);
}
